package homeWork.SOC4.mission_extra;

/**
 * 公交车实体描述类
 */
public class Bus extends Vehicle {

    //属性
    private int maxLoad;
    private String busNo;

    //行为
    public Bus(){
    }

    public Bus(int maxLoad, String busNo) {
        this.maxLoad = maxLoad;
        this.busNo = busNo;
    }

    public Bus(String type, String brand, int engineNum,
               String color, int maxLoad, String busNo) {
        super(type, brand, engineNum, color);
        this.maxLoad = maxLoad;
        this.busNo = busNo;
    }

    public void annouceBusStop(){
        System.out.println("公交车报站功能");
    }
}
